﻿// #pragma NoCompStart
/*
edtooltip.js  .9
*/
// #pragma NoCompEnd
showToolTip = function(e, text) {
    if (document.all) e = event;

    var obj = $('edtooltip');
    var obj2 = document.getElementById('edtooltip_content');
    obj2.innerHTML = text;
    obj.style.display = 'block';
    var st = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
    if (is.mac) { st = 0; }
    var leftPos = e.clientX - 100;
    if (leftPos < 0) leftPos = 0;
    obj.style.left = leftPos + 'px';
    obj.style.top = e.clientY - obj.offsetHeight - 1 + st + 'px';
}

hideToolTip = function() {
    $('edtooltip').style.display = 'none';
}